package cn.jy.finanlle.controller;


import cn.jy.common.domain.financea.ExpressRechargeRecord;
import cn.jy.common.domain.vo.ExpressRechargeRecordVo;
import cn.jy.finanlle.mapper.ExpressRechargeRecordMapper;
import cn.jy.finanlle.service.ExpressRechargeRecordService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

@RestController
@RequestMapping("/recharge")
@CrossOrigin
public class ExpressRechargeRecordController {
    @Autowired
    private ExpressRechargeRecordService expressRechangeRecordService;
    @Autowired
    private ExpressRechargeRecordMapper expressRechangeRecordMapper;

    @GetMapping("/list")
    public PageInfo<ExpressRechargeRecordVo> selectExpressRechangeRecordList(ExpressRechargeRecordVo expressRechangeRecordVo) {
        return expressRechangeRecordService.selectExpressRechangeRecordList(expressRechangeRecordVo);
    }

    @GetMapping("/selectFindById")
    public ExpressRechargeRecord selectFindById(@RequestParam("id") Integer id){
        return expressRechangeRecordMapper.selectFindById(id);
    }


}
